package com.ywgt.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.ywgt.pojo.Groupon;
import com.ywgt.mapper.GrouponMapper;
import com.ywgt.service.GrouponService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
@Service
public class GrouponServiceImpl extends ServiceImpl<GrouponMapper, Groupon> implements GrouponService {

    @Override
    public Page<Groupon> getGroupon(Integer grouponId, int page, int limit, String sort, String order) {
        PageHelper.startPage(page,limit);
        return baseMapper.selectGroupon(grouponId,sort,order);
    }
}
